part of '../purchased_item.dart';

class WebPurchasedSubscription extends Equatable
    implements WebPurchasedItem, PurchasedSubscription {
  const WebPurchasedSubscription({
    required this.purchaseItemSku,
    required this.expirationTime,
    required this.autoRenewalEnabled,
    required this.originalTransactionId,
    required this.status,
    required this.transactions,
  });

  @override
  final String purchaseItemSku;

  @override
  final DateTime? expirationTime;

  @override
  final bool autoRenewalEnabled;

  final String originalTransactionId;
  final WebPurchasedSubscriptionStatus status;
  final BuiltList<WebPurchasedSubscriptionTransaction> transactions;

  @override
  List<Object?> get props {
    return [
      originalTransactionId,
      purchaseItemSku,
      autoRenewalEnabled,
      status,
      expirationTime,
      transactions,
    ];
  }
}
